package EvaTCPL;
import java.lang.Math;

public class EvaTCPLtan extends EvaTCPLaexpression
{

  public EvaTCPLtan(EvaTCPLaexpression e)
    {
      super(e);
    }

  /** Evaluate this arithmetic expression. */
  public double evaluate()
    {
      return Math.tan(sons[0].evaluate());
    }

  /** Evaluate this arithmetic expression as an integer. */
  public int evaluateint()
    {
      return 0;
    }

  /** Convert expression to a string. */
  public String toString()
    {
      return "tan("+sons[0].toString()+")";
    }

}
